package com.xingfu.mybatisdemo.service;

import com.github.pagehelper.PageInfo;
import com.xingfu.mybatisdemo.dto.UserDTO;
import com.xingfu.mybatisdemo.persistence.po.SysUsers;
import com.xingfu.mybatisdemo.vo.UserVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author nzx
 * @version 1.0
 * @date 2019/10/28
 * @description: 商户信息添加
 **/
@Service
public interface IMerchantService {

    /**
     * 获取用户信息
     * @param userId
     * @return
     */
    UserVO getUserAndRole(Long userId);

    Long insertUser(UserDTO userDTO);

    PageInfo<SysUsers> getUserByPage(int curPage, int pageSize);

    List<SysUsers> getUserByDate(String time);
}
